import 'package:flutter/material.dart';

class DefaultBottom extends StatelessWidget {
  Color color;
  String text;
  GestureTapCallback? cb;

  DefaultBottom({super.key, this.color = Colors.red, this.text = "按钮", this.cb});

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: cb,
      child: Container(
        margin: const EdgeInsets.all(10),
        decoration: BoxDecoration(
          color: color,
          borderRadius: const BorderRadius.all(Radius.circular(12)),
        ),
        alignment: Alignment.center,
        child: Text(text, style: TextStyle(fontSize: 12, color: Colors.white)),
      ),
    );
  }
}
